{% stylesheet %}
.block_html img{
  max-width:100%;
}
{% endstylesheet %}
<div class="block_html">
{{ section.settings.html }}
</div>
{% schema %}
{
  "name": {
    "zh_CN": "自定义"
  },
  "tag": "section",
  "class": "block_html",
  "is_global": false,
  "settings": [
    {
      "type": "card_header",
      "id": "",
      "label": {
        "zh_CN": "自定义"
      }
    },
    {
      "type": "card_textarea",
      "id": "html",
      "label": {
        "zh_CN": "HTML"
      },
      "placeholder": {
        "zh_CN": "请输入代码"
      }
    }
  ],
  "blocks": [],
  "default": {
    "settings": {
      "html":"<div style=\"text-align:center;background: #f6f6f6;padding: 40px 0;\"><h3 style=\"margin-bottom:20px\">Heading</h3><p>Body content</p></div>"
    },
    "blocks": []
  }
}
{% endschema %}